﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Devida/Siste.master" AutoEventWireup="false" CodeFile="Reporte_Varios.aspx.vb" Inherits="Devida_Reporte_Varios" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <base target="_self" />
    <link href="../css/EstilosFrm.css" type="text/css" rel="stylesheet" /> 
    <link href="../css/i_consultas.css" type="text/css" rel="stylesheet" />
    <link href="../css/diseno.css" type="text/css" rel="Stylesheet" />
    <link href="../css/style2.css" type="text/css" rel="stylesheet" />
    <link href="../css/StyleSheet.css" type="text/css" rel="stylesheet" />      
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="cph_name" Runat="Server">
    <asp:Label ID="Label1" runat="server" Font-Names="Arial" Font-Size="17px" ForeColor="white" Text="Reporte Varios" Font-Bold="True"></asp:Label>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <div style="width: 725px; height: 260px; text-align: left; overflow-y: auto; border: 1px solid #234ac7">
    <table style="border-collapse: collapse; border-spacing: 0px 0px; padding: 0px 0px 0px 0px; width: 95%;">
            <tr>
                <td>
                    <table style="width:703px; border: 1px solid #6489a4; text-align:center; background-color: #ebebeb; color: #000000; font-weight: bold; font-size: 24px; border-collapse: collapse; border-spacing: 0px 0px; padding: 0px 0px 0px 0px;">
                        <tr style="font-weight: bold;">
                            <td style="border-right: 1px solid #6489a4; width: 296px; font-weight: bold;">
                                <asp:Label ID="Label2" runat="server" Text="PPER" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td style="border-right: 1px solid #6489a4; border-bottom: 1px solid #6489a4; width:195px;">
                                <asp:Label ID="Label4" runat="server" Text="EJECUTOR" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td style="border-right: 1px solid #6489a4; width: 97px">
                                <asp:Label ID="Label5" runat="server" Text="Nro de Actividades" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>                           
                            <td >
                                <asp:Label ID="Label7" runat="server" Text="Total Montos" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                        </tr>                        
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table style="width:700px; padding: 0px 0px 0px 0px; text-align: left; border-collapse: collapse; border-spacing: 0px 0px; border:1px solid #6489a4;"">
                        <tr>
                            <td>
                                <asp:GridView ID="gv_PPER" runat="server" AutoGenerateColumns="False" Width="700px" CellSpacing="-1" ShowHeader="False" Style="padding-top: -2px">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemStyle Width="300px" HorizontalAlign="Center" VerticalAlign="Middle" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblPPER" runat="server" Text='<%# Eval("DESCRIPCION")%>' Style="font-size: 12px;" Font-Bold="True"></asp:Label>
                                                <asp:HiddenField ID="hfPPER" runat="server" Value='<%# Eval("PPER")%>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField >
                                            <ItemStyle BackColor="White" />
                                            <ItemTemplate>
                                                <asp:GridView ID="gv_Detalle" runat="server" AutoGenerateColumns="False" Width="400px" CssClass="grid" OnRowDataBound="RDB" ShowHeader="false" ShowFooter="false">
                                                    <Columns>
                                                        <asp:TemplateField HeaderText="N°" ItemStyle-Width="20px">
                                                                 <ItemTemplate>
                                                                     <%# Container.DataItemIndex + 1 %>
                                                                 </ItemTemplate>
                                                             </asp:TemplateField>
                                                        <asp:BoundField DataField="ENTIDAD_EJECUTORA" ItemStyle-Width="176px" ItemStyle-HorizontalAlign="left"></asp:BoundField>
                                                        <asp:BoundField DataField="NO_POA" ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N0}"></asp:BoundField>
                                                        <asp:BoundField DataField="SUMA_POA" ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N2}"></asp:BoundField>                                                                                                                
                                                    </Columns>
                                                </asp:GridView>                                                
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <br />
    <div style="width: 725px; height: 260px; text-align: left; overflow-y: auto; border: 1px solid #234ac7">
    <table style="border-collapse: collapse; border-spacing: 0px 0px; padding: 0px 0px 0px 0px; width: 95%;">
            <tr>
                <td>
                    <table style="width:703px; border: 1px solid #6489a4; text-align:center; background-color: #ebebeb; color: #000000; font-weight: bold; font-size: 24px; border-collapse: collapse; border-spacing: 0px 0px; padding: 0px 0px 0px 0px;">
                        <tr style="font-weight: bold;">
                            <td style="border-right: 1px solid #6489a4; width: 296px; font-weight: bold;">
                                <asp:Label ID="Label3" runat="server" Text="PPER" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td style="border-right: 1px solid #6489a4; border-bottom: 1px solid #6489a4; width:195px;">
                                <asp:Label ID="Label6" runat="server" Text="REGION" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                            <td style="border-right: 1px solid #6489a4; width: 97px">
                                <asp:Label ID="Label8" runat="server" Text="Nro de Actividades" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>                           
                            <td >
                                <asp:Label ID="Label9" runat="server" Text="Total Montos" Style="font-weight: bold; font-size: 12px;"></asp:Label></td>
                        </tr>                        
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table style="width:700px; padding: 0px 0px 0px 0px; text-align: left; border-collapse: collapse; border-spacing: 0px 0px; border:1px solid #6489a4;"">
                        <tr>
                            <td>
                                <asp:GridView ID="gv_Region" runat="server" AutoGenerateColumns="False" Width="700px" CellSpacing="-1" ShowHeader="False" Style="padding-top: -2px">
                                    <Columns>
                                        <asp:TemplateField>
                                            <ItemStyle Width="300px" HorizontalAlign="Center" VerticalAlign="Middle" />
                                            <ItemTemplate>
                                                <asp:Label ID="lblPPER" runat="server" Text='<%# Eval("DESCRIPCION")%>' Style="font-size: 12px;" Font-Bold="True"></asp:Label>
                                                <asp:HiddenField ID="hfPPER" runat="server" Value='<%# Eval("PPER")%>' />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField>
                                            <ItemStyle BackColor="White" />
                                            <ItemTemplate>
                                                <asp:GridView ID="gv_Detalle" runat="server" AutoGenerateColumns="False" CssClass="grid" Width="400px" OnRowDataBound="RDB2" ShowHeader="false" ShowFooter="false">
                                                    <Columns>
                                                        <asp:TemplateField HeaderText="N°" ItemStyle-Width="20px">
                                                                 <ItemTemplate>
                                                                     <%# Container.DataItemIndex + 1 %>
                                                                 </ItemTemplate>
                                                             </asp:TemplateField>
                                                        <asp:BoundField DataField="REGION" ItemStyle-Width="176px" ItemStyle-HorizontalAlign="left"></asp:BoundField>
                                                        <asp:BoundField DataField="NO_POA" ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N0}"></asp:BoundField>
                                                        <asp:BoundField DataField="SUMA_POA" ItemStyle-Width="100px" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N2}"></asp:BoundField>                                                                                                                
                                                    </Columns>
                                                </asp:GridView>                                                
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

